package com.jzo2o.customer.client;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.client.fallback.WorkerCertAuditFallback;
import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(
        name = "jzo2o-customer",
        fallbackFactory = WorkerCertAuditFallback.class
)
public interface WorkerCertAuditClient {
    @GetMapping("/page")
    @ApiOperation("实名认证远程调用接口")
    PageResult<WorkerCertificationAudit> page(@RequestBody @ApiParam(name = "dto", value = "分页查询参数")
                                                     WorkerCertificationAuditPageQueryReqDTO dto);
}
